package com.wx.fresh.business.controller;

import com.wx.fresh.business.vo.storeVo.BStoreProductOutVo;
import com.wx.fresh.business.vo.storeVo.BStoreProductShelvesVo;
import com.wx.fresh.business.vo.storeVo.BStoreProductVo;
import com.wx.fresh.business.vo.productVo.StoreProductVo;
import com.wx.fresh.common.util.CommonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


/**
 * 店铺商品管理
 */
@Api(tags = "店铺商品管理")
@RestController
@RequestMapping("store/product")
public class StoresProductController {


    @ApiOperation(value = "店铺商品查询", response = BStoreProductOutVo.class)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "storeId", value = "店铺id", required = true, paramType = "form"),
    })
    @GetMapping("/findStoreProduct")
    public CommonResult<List<BStoreProductVo>> findStoreProduct(StoreProductVo storeProductVo) {
        return CommonResult.success();
    }

    @ApiOperation(value = "店铺商品上下架")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "productId", value = "商品id", required = true, paramType = "form"),
            @ApiImplicitParam(name = "state", value = "状态", required = true, paramType = "form"),
    })
    @PostMapping("/productOffAndOnShelves")
    public CommonResult productOffAndOnShelves(BStoreProductShelvesVo bStoreProductShelvesVo) {
        return CommonResult.success(null);
    }
}
